4a80cfb805bfbe14f8499526b8dd4260e3f6354a,graylog2-server/src/main/java/org/graylog2/rest/resources/system/bundles/BundleResource.java,BundleResource,listBundles,#,90

Before Change


            @ApiResponse(code = 500, message = "Error loading configuration bundles")
    })
    public Set<ConfigurationBundle> listBundles() {
        return bundleService.loadAll();
    }

    @GET

After Change


    public Multimap<String, ConfigurationBundle> listBundles() {
        final ImmutableSetMultimap.Builder<String, ConfigurationBundle> categoryBundleMap = ImmutableSetMultimap.builder();

        for(final ConfigurationBundle bundle : bundleService.loadAll()) {
            categoryBundleMap.put(bundle.getCategory(), bundle);
        }